//
//  HNUserSettingCell.m
//  HappyNews
//
//  Created by baiping on 16/1/13.
//  Copyright © 2016年 BPWBANP. All rights reserved.
//

#import "HNUserSettingCell.h"

@implementation HNUserSettingCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    
    if (self) {
        
 
        [self addSubviews];
    }
    
    return self;
    
}

- (void)addSubviews{
    
    _contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 10, 200, 30)];
    
    [self.contentView addSubview:_contentLabel];
    
    _mySwitch = [[UISwitch alloc]initWithFrame:CGRectMake(kScreenWidth - 40 - 20, _contentLabel.top, 40, 30)];
    
    [self.contentView addSubview:_mySwitch];
    
    _mySwitch.onTintColor = HNBgColor;
    
    _detailBtn = [[UIButton alloc]initWithFrame:CGRectMake(kScreenWidth - 40, _contentLabel.top, 30, 30)];
    
    [self.contentView addSubview:_detailBtn];
    
    _contentLabel.font = [UIFont systemFontOfSize:15];
    
    
}
















@end
